Nearest Common Ancestors: Universal Trees and Improved Labeling Schemes
نویسندگان
چکیده
We investigate the nearest common ancestor (NCA) function in rooted trees. As the main conceptual contribution, the paper introduces universal trees for the NCA function: For a given family of rooted trees, an NCA-universal tree S is a rooted tree such that any tree T of the family can be embedded into S such that the embedding of the NCA in T of two nodes of T is equal to the NCA in S of the embeddings of the two nodes. As the main technical result we give explicit constructions of NCA-universal trees of size n for the family of rooted n-vertex trees and of size n for the family of rooted binary n-vertex trees. A direct consequence is the explicit construction of NCA-labeling schemes with labels of size 2.318 log2 n and 1.894 log2 n for the two families of rooted trees. This improves on the best known such labeling schemes established by Alstrup, Halvorsen and Larsen [SODA 2014].
منابع مشابه
Labeling Schemes for Nearest Common Ancestors through Minor-Universal Trees
Preprocessing a tree for finding the nearest common ancestor of two nodes is a basic tool with multiple applications. Quite a few linear-space constant-time solutions are known and the problem seems to be well-understood. This is however not so clear if we want to design a labeling scheme. In this model, the structure should be distributed: every node receives a distinct binary string, called i...
متن کاملNear-optimal labeling schemes for nearest common ancestors
We consider NCA labeling schemes: given a rooted tree T , label the nodes of T with binary strings such that, given the labels of any two nodes, one can determine, by looking only at the labels, the label of their nearest common ancestor. For trees with n nodes we present upper and lower bounds establishing that labels of size (2± ǫ) log n, ǫ < 1 are both sufficient and necessary. Alstrup, Bill...
متن کاملOptimal Distance Labeling Schemes for Trees
Labeling schemes seek to assign a short label to each node in a network, so that a function on two nodes (such as distance or adjacency) can be computed by examining their labels alone. For the particular case of trees, following a long line of research, optimal bounds (up to low order terms) were recently obtained for adjacency labeling [FOCS ’15], nearest common ancestor labeling [SODA ’14], ...
متن کاملShort Labels for Lowest Common Ancestors in Trees
We evaluate the practical performance of labeling schemes for lowest common ancestors in trees. We develop different variants for encoding the labels. We then perform a thorough experimental evaluation of these schemes on a variety of tree shapes and sizes. We find that in general non-prefix-free codes lead to shorter labels than those that are prefix-free, while having roughly the same query t...
متن کاملInformative Labeling Schemes for the Least Common Ancestor Problem
We address the problem of labeling the nodes of a tree such that one can determine the identifier of the least common ancestor of any two nodes by looking only at their labels. This problem has application in routing and in distributed computing in peer-to-peer networks. A labeling scheme using Θ(log n)-bit labels has been presented by Peleg. By engineering this scheme and a new one due to the ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- CoRR
دوره abs/1707.08807 شماره
صفحات -
تاریخ انتشار 2017